.publish-notification-container {
    min-height: 100vh;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 顶部导航栏 */
.header {
    background: #FF8C00;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-icon {
    font-size: 24px;
    font-weight: bold;
}

/* 主要内容 */
.main-content {
    background: white;
    min-height: calc(100vh - 60px);
}

/* 队伍名称区域 */
.team-name-section {
    padding: 20px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 发布表单 */
.publish-form {
    padding: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF8C00;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #FF8C00;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 复选框样式 */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background: #f8f9fa;
}

.checkbox-input {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.checkbox-hint {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    line-height: 1.3;
}

/* 图片上传 */
.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.image-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.upload-section {
    text-align: center;
    padding: 20px;
    border: 2px dashed #e5e5e5;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.upload-section:hover {
    border-color: #FF8C00;
}

.file-input {
    display: none;
}

.upload-btn {
    background: #FF8C00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.upload-btn:hover:not(:disabled) {
    background: #e67e00;
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.upload-tip {
    font-size: 12px;
    color: #999;
}

/* 发布按钮区域 */
.publish-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e5e5;
}

.publish-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.publish-btn:hover:not(:disabled) {
    background: #0056b3;
}

.publish-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 提示信息 */
.success-toast,
.error-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    animation: popIn 0.3s ease-out;
    min-width: 200px;
    justify-content: center;
}

.success-toast {
    background: #28a745;
    color: white;
}

.error-toast {
    background: #dc3545;
    color: white;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.success-icon,
.error-icon {
    font-size: 18px;
    margin: 0;
}

.success-text,
.error-text {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .publish-form {
        padding-bottom: 80px; /* 为底部按钮留出空间 */
    }

    .uploaded-images {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .form-input,
    .form-textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
}